home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / Include / fsrmtDomain.h < prev    next >
C/C++ Source or Header  |  1990-10-19  |  3KB  |  120 lines

  1. /*
  2.  * fsrmtDomain.h --
  3.  *
  4.  *    Definitions of the parameters required for Sprite Domain operations
  5.  *
  6.  * Copyright (C) 1985 Regents of the University of California
  7.  * All rights reserved.
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  *
  17.  * $Header: /sprite/src/kernel/fsrmt/RCS/fsrmtDomain.h,v 9.2 90/10/08 15:02:53 mendel Exp $ SPRITE (Berkeley)
  18.  */
  19.  
  20. #ifndef _FSSPRITEDOMAIN
  21. #define _FSSPRITEDOMAIN
  22.  
  23. #include <fsNameOps.h>
  24. #include <proc.h>
  25. #include <fsrmt.h>
  26.  
  27. /*
  28.  * These typedefs are replaced by stuff in fsrmtInt.h
  29.  */
  30. #ifdef notdef
  31.  
  32.  
  33. /*
  34.  * Parameters for the read and write RPCs.
  35.  */
  36.  
  37. typedef struct FsrmtRemoteIOParam {
  38.     Fs_FileID    fileID;            /* Identifies file to read from */
  39.     Fs_FileID    streamID;        /* Identifies stream (for offset) */
  40.     Sync_RemoteWaiter waiter;        /* Process info for remote waiting */
  41.     Fs_IOParam    io;            /* I/O parameter block */
  42. } FsrmtRemoteIOParam;
  43.  
  44. /*
  45.  * Parameters for the iocontrol RPC
  46.  */
  47.  
  48. typedef struct FsrmtSpriteIOCParams {
  49.     Fs_FileID    fileID;        /* File to manipulate. */
  50.     Fs_FileID    streamID;    /* Stream to the file, needed for locking */
  51.     Proc_PID    procID;        /* ID of invoking process */
  52.     Proc_PID    familyID;    /* Family of invoking process */
  53.     int        command;    /* I/O Control to perform. */
  54.     int        inBufSize;    /* Size of input params to ioc. */
  55.     int        outBufSize;    /* Size of results from ioc. */
  56.     int        byteOrder;    /* Defines client's byte ordering */
  57.     int        uid;        /* Effective User ID */
  58. } FsrmtSpriteIOCParams;
  59.  
  60. /*
  61.  * Parameters for the I/O Control RPC.  (These aren't used, oops,
  62.  * someday they should be used.)
  63.  */
  64.  
  65. typedef struct FsrmtRemoteIOCParam {
  66.     Fs_FileID    fileID;        /* File to manipulate. */
  67.     Fs_FileID    streamID;    /* Stream to the file, needed for locking */
  68.     Fs_IOCParam    ioc;        /* IOControl parameter block */
  69. } FsrmtRemoteIOCParam;
  70.  
  71. /*
  72.  * Parameters for the block copy RPC.
  73.  */
  74. typedef struct FsrmtRemoteBlockCopyParams {
  75.     Fs_FileID    srcFileID;    /* File to copy from. */
  76.     Fs_FileID    destFileID;    /* File to copy to. */
  77.     int        blockNum;    /* Block to copy to. */
  78. } FsrmtRemoteBlockCopyParams;
  79.  
  80. #endif
  81.  
  82. /*
  83.  * RPC debugging.
  84.  */
  85. #ifndef CLEAN
  86. #define FSRMT_RPC_DEBUG_PRINT(string) \
  87.     if (fsrmt_RpcDebug) {\
  88.         printf(string);\
  89.     }
  90. #define FSRMT_RPC_DEBUG_PRINT1(string, arg1) \
  91.     if (fsrmt_RpcDebug) {\
  92.         printf(string, arg1);\
  93.     }
  94. #define FSRMT_RPC_DEBUG_PRINT2(string, arg1, arg2) \
  95.     if (fsrmt_RpcDebug) {\
  96.         printf(string, arg1, arg2);\
  97.     }
  98. #define FSRMT_RPC_DEBUG_PRINT3(string, arg1, arg2, arg3) \
  99.     if (fsrmt_RpcDebug) {\
  100.         printf(string, arg1, arg2, arg3);\
  101.     }
  102. #define FSRMT_RPC_DEBUG_PRINT4(string, arg1, arg2, arg3, arg4) \
  103.     if (fsrmt_RpcDebug) {\
  104.         printf(string, arg1, arg2, arg3, arg4);\
  105.     }
  106. #else
  107. #define FSRMT_RPC_DEBUG_PRINT(string)
  108. #define FSRMT_RPC_DEBUG_PRINT1(string, arg1)
  109. #define FSRMT_RPC_DEBUG_PRINT2(string, arg1, arg2)
  110. #define FSRMT_RPC_DEBUG_PRINT3(string, arg1, arg2, arg3)
  111. #define FSRMT_RPC_DEBUG_PRINT4(string, arg1, arg2, arg3, arg4)
  112. #endif not CLEAN
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. #endif _FSSPRITEDOMAIN
  120.